package com.luo.ssm.mapper;

import com.luo.ssm.entity.SysUser;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * @author : luocheng
 * @date : Created in 2021/8/26 19:18
 * @description : 对用户表进行操作
 */
public interface SysUserMapper {
    //登录查询
    @Select("select * from sys_user where uloginname=#{uloginname} and upwd=#{upwd}")
    SysUser selectSysUser(SysUser sysUser);
    //修改密码
    @Update("update sys_user set upwd=#{upwd} where uid=#{uid}")
    int updatePassword(SysUser sysUser);
}
